package com.tangzx.builder.abc.string;

/**
 * QName<br>
 * ns + name
 * @author tangzhixu
 *
 */
public class QName extends MultiName {

	public QName(int kind, int[] params) {
		super(kind, params);
	}

	public Namespace getNameSpace() {
		return cpool.getNamespace(params[0]);
	}
	
	public AbcString getName() {
		return cpool.getString(params[1]);
	}
	
	@Override
	public String toString() {
		String value = "[QName[name:" + getName() + ", ns:" + getNameSpace() + "]]";
		return value;
	}
}
